package Chris.Project;
 
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
 
public class main extends Activity implements OnClickListener {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Button b = (Button) findViewById(R.id.AddRecord);
        b.setOnClickListener(this);
    }
 
   @Override
    public void onClick(View v) {
        DataLayer d = new DataLayer(getBaseContext());
        d.AddEvent(1, 2, 3, 21);
    }
}